 var commons = {
	routPath :'/api',
	colseLoading:function (){
		var loadWaiting = $('#loadWaiting');
		if(loadWaiting){
			$('#loadWaiting').modal('hide');
		}
		
	},
	loading:function (){
		var loadWaiting = $('#loadWaiting');
		if(!loadWaiting){
			//创建
			var loadWaitingDiv=document.createElement("div");  
			loadWaiting.class="modal fade";
			loadWaiting.id=loadWaiting;
			loadWaiting.innerHTML="<div class=\"modal-dialog modal-sm\" style=\"text-align: center;vertical-align: middle;\"><img alt=\"\" src=\"\" /></div>"
			document.body.appendChild(loadWaiting);   
			commons.loading();
		}else{
			loadWaiting.modal({backdrop:'static',keyboard:false});
		}
	}
}	
